package com.example.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: my-spring-boot
 * @description: HelloController
 * @author: JackDong
 * @create: 2018-04-09 16:35
 **/
@RestController
@RequestMapping("/hello")
public class HelloController {

    @ApiOperation(value="访问Hello首页", notes="访问Hello首页")
    @RequestMapping(value = "/",method = RequestMethod.GET)
    public String index(){
        return "Greetings from Spring Boot";
    }
}
